/**
 * @license
 * Copyright Akveo. All Rights Reserved.
 * Licensed under the MIT License. See License.txt in the project root for license information.
 */

@import './input-statuses';
@import './input-sizes';
@import './input-shapes';

@mixin nb-input-theme() {

  [nbInput] {
    border-style: nb-theme(input-border-style);
    border-width: nb-theme(input-border-width);
    font-family: nb-theme(input-text-font-family);
    -webkit-appearance: none; // removes inner shadow on iOS

    @include nb-component-animation(border, background-color, color, box-shadow);

    &::placeholder {
      font-family: nb-theme(input-placeholder-text-font-family);
      text-overflow: ellipsis;
    }

    &:focus {
      outline: none;
    }

    &.input-full-width {
      width: 100%;
    }

    @include input-statuses();
    @include input-sizes();
    @include input-shapes();
  }
}
